package org.tloss.web.editor.form.editors.command;

import org.eclipse.core.resources.IResourceChangeListener;
import org.tloss.web.editor.model.command.Command;
import org.tloss.web.editor.model.command.Replace;

public class ReplaceElement extends AbstractCommandElement {

	public ReplaceElement(Replace command, IResourceChangeListener listener) {
		super(command, listener);
	}

	public boolean isSupportedChildren() {
		return false;
	}

	ReplaceProperty property = new ReplaceProperty();

	@Override
	@SuppressWarnings("rawtypes")
	public Object getInternalAdapter(Class adapter, Command command,
			IResourceChangeListener listener) {
		property.setCommand((Replace) command);
		property.setListener(listener);

		return property;
	}

}
